.chart {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: lightgray;
    overflow: hidden;
  }
  
  .slice {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3498db;
    transition: all 0.3s ease-in-out;
  }
  
  #slice1 {
    transform: rotate(0deg);
    z-index: 3;
  }
  
  #slice2 {
    transform: rotate(45deg);
    z-index: 2;
  }
  
  #slice3 {
    transform: rotate(90deg);
    z-index: 1;
  }
  
  /* 添加更多的样式 */